"""
__author__ = 'berlinyoung'
@File   :main_page.py
@Date   :2022/6/12 21:53
-*- coding: utf-8 -*-
"""
from appium.webdriver.common.mobileby import MobileBy

from anxinstock_mobile.page.base import Base

class MainPage(Base):

    # 回到主页，return MainPage
    def goto_home_page(self):
        pass

    def goto_market_page(self):
        self.find_and_click(MobileBy.XPATH,"//*[@class='androidx.appcompat.app.ActionBar$Tab'][2]")

        from anxinstock_mobile.page.market_page import MarketPage
        return MarketPage(self.driver)

    def goto_transaction_page(self):
        pass

    def goto_wealth_page(self):
        pass

    def goto_mine_page(self):
        pass

